local M = _G.ClientOHOH.class.new(script,_G.ClientOHOH.files.Client_PlayerComponent(),script.Parent.Name)

local RankCalss=require(script.Parent.RankUI)

function M.new(self,...)
    return M(self,...)
end

function M.ctor(self,parent)
    M.super.ctor(self,parent)

    local timeRank=RankCalss.new(workspace.Rank:WaitForChild("time"))
    local killRank= RankCalss.new(workspace.Rank:WaitForChild("kill"))
    local saveRank= RankCalss.new(workspace.Rank:WaitForChild("save"))
    local levelRank= RankCalss.new(workspace.Rank:WaitForChild("level"))
    local sponsorRank= RankCalss.new(workspace.Rank:WaitForChild("sponsor"))

    --设置表头：多语言只能在客户端
    timeRank:SetTitle(_G.LanguageHelper:GetText(888053))
    killRank:SetTitle(_G.LanguageHelper:GetText(888050))
    saveRank:SetTitle(_G.LanguageHelper:GetText(888052))
    levelRank:SetTitle(_G.LanguageHelper:GetText(888051))
    sponsorRank:SetTitle(_G.LanguageHelper:GetText(888054))

end


function M.dtor(self)
    M.super.dtor(self)
end

return M 